<div class="grid-header clearfix mt10" style="position: absolute;right: 0;top: 25px;">
    <div class="fr btn-group">
        <a  href="javascript: void(0)" class="btn" ng-click="exportData()">导出</a>
        <a  href="#total" class="btn btn-yellow">返回</a>
    </div>
</div>
<div class="mt15 clearfix" ng-show="totalType=='hk'">
    <div class="fl mt5">所属团队：</div>
    <div class="fl select" style="width:120px;" ui-filtercombobox data="teamList"
         ng-model="query.teamId" value-field="team_id">
    </div>
    <div class="fl mt5 ml10">所属小组：</div>
    <div class="fl select" style="width:120px;" ui-filtercombobox data="groupList"
         ng-model="query.groupId" value-field="group_id" ui-disabled="query.groupDisabled" title="{{query.groupDisabled?'请先选择团队':''}}">
    </div>
    <div class="fl mt5 ml10">业务员：</div>
    <div class="fl select" style="width:120px;" ui-filtercombobox data="salerList"
         ng-model="query.salerId" value-field="user_id" ui-disabled="query.salerDisabled" title="{{query.salerDisabled?'请先选择小组':''}}">
    </div>
    <div class="fl btn-group ml10">
        <a href="javascript: void(0)" class="btn fl mlr5" ng-click="getList()">查询</a>
        <a href="javascript: void(0)" class="btn btn-yellow mlr5" ng-click="resetQuery()">重置搜索</a>
    </div>
</div>
<div class="auto-wrap mt10">
    <div class="auto-wrap-con clearfix">
        <div class="fl right-panel">

            <div class="table-wrap ng-cloak" ng-show="!loading">
                <table width="100%" ng-if="totalType=='rmb'">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>房间名称</th>
                        <th style="width:80px;">客户姓名</th>
                        <th>客户电话</th>
                        <th>业务员</th>
                        <th>所属组织</th>
                        <th>业务类型</th>
                        <th>业务日期</th>
                        <th>签约金额（元）</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat=" dailyReport in performanceReportList">
                        <td height="45">{{(query.pageIndex-1)*query.pageSize+$index+1}}</td>
                        <td>{{dailyReport.RoomName}}</td>
                        <td>{{dailyReport.CstName}}</td>
                        <td>{{dailyReport.CstTel}}</td>
                        <td>{{dailyReport.UserName}}</td>
                        <td>{{dailyReport.TeamName}}</td>
                        <td>{{dailyReport.BizType}}</td>
                        <td>{{filterDate(dailyReport.BizDate)}}</td>
                        <td>{{dailyReport.ContractAmount | number:2}}</td>
                    </tr>
                    </tbody>
                </table>
                <table width="100%" class="table-wrap-head" ng-if="totalType=='ts'">
                    <thead>
                    <tr>
                        <td>序号</td>
                        <td>房间名称</td>
                        <td>客户姓名</td>
                        <td>客户电话</td>
                        <td>业务员</td>
                        <td>所属组织</td>
                        <td>业务类型</td>
                        <td>业务日期</td>
                        <td>签约套数(套)</td>

                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat=" dailyReport in performanceReportList">
                        <td height="45">{{(query.pageIndex-1)*query.pageSize+$index+1}}</td>
                        <td>{{dailyReport.RoomName}}</td>
                        <td>{{dailyReport.CstName}}</td>
                        <td>{{dailyReport.CstTel}}</td>
                        <td>{{dailyReport.UserName}}</td>
                        <td>{{dailyReport.TeamName}}</td>
                        <td>{{dailyReport.BizType}}</td>
                        <td>{{filterDate(dailyReport.BizDate)}}</td>
                        <td>{{dailyReport.ContractTS}}</td>
                    </tr>
                    </tbody>
                </table>
                <table width="100%" class="table-wrap-head" ng-if="totalType=='area'">
                    <thead>
                    <tr>
                        <td>序号</td>
                        <td>房间名称</td>
                        <td>客户姓名</td>
                        <td>客户电话</td>
                        <td>业务员</td>
                        <td>所属组织</td>
                        <td>业务类型</td>
                        <td>业务日期</td>
                        <td>签约面积</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat=" dailyReport in performanceReportList">
                        <td height="45">{{(query.pageIndex-1)*query.pageSize+$index+1}}</td>
                        <td>{{dailyReport.RoomName}}</td>
                        <td>{{dailyReport.CstName}}</td>
                        <td>{{dailyReport.CstTel}}</td>
                        <td>{{dailyReport.UserName}}</td>
                        <td>{{dailyReport.TeamName}}</td>
                        <td>{{dailyReport.BizType}}</td>
                        <td>{{filterDate(dailyReport.BizDate)}}</td>
                        <td>{{dailyReport.ContractArea}}</td>
                    </tr>
                    </tbody>
                </table>
                <table width="100%" class="table-wrap-head" ng-if="totalType=='hk'">
                    <thead>
                    <tr>
                        <td>序号</td>
                        <td>房间名称</td>
                        <td>客户姓名</td>
                        <td>客户电话</td>
                        <td>款项类型</td>
                        <td>款项名称</td>
                        <td>业务日期</td>
                        <td>回款金额（元）</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat=" dailyReport in performanceReportList">
                        <td height="45">{{(query.pageIndex-1)*query.pageSize+$index+1}}</td>
                        <td>{{dailyReport.RoomName}}</td>
                        <td>{{dailyReport.CstName}}</td>
                        <td>{{dailyReport.CstTel}}</td>
                        <td>{{dailyReport.FundType}}</td>
                        <td>{{dailyReport.FundName}}</td>
                        <td>{{filterDate(dailyReport.BizDate)}}</td>
                        <td>{{dailyReport.RefundAmount}}</td>
                    </tr>
                    </tbody>
                </table>
                <div class="no-data ng-cloak"  ng-if="performanceReportList && !performanceReportList.length">
                    <span>暂无数据</span>
                </div>
            </div>
            <div class="tab_loading" ng-show="loading"><span>加载中...</span></div>
            <div ui-pagination="" page-index="query.pageIndex" page-size="query.pageSize" total="query.total"
                 changed="getList($pageIndex)"></div>
        </div>
    </div>
</div>